new Vue({
    el:"#app",
    data:{
        currentIndex:0,
        list:[
            {pic:'',name:'首页'},
            {pic:'',name:'包包团'},
            {pic:'',name:'订单'},
            {pic:'',name:'我的'}
        ]
    },
    methods:{
        handleClick(index){
            this.currentIndex = index;//保存点击的按钮小标
        }
    }
})